var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import React from "react";
import { View, Text } from "@tarojs/components";
import "./index.scss";
var PickerPanel = function (_a) {
    var title = _a.title, onConfirm = _a.onConfirm, onCancel = _a.onCancel, _b = _a.confirmTextStyle, confirmTextStyle = _b === void 0 ? {} : _b, _c = _a.cancelTextStyle, cancelTextStyle = _c === void 0 ? {} : _c, children = _a.children;
    return (React.createElement(View, { className: "piker-panel" },
        React.createElement(View, { className: "panel-header" },
            React.createElement(View, { className: "panel-btn-View", style: { textAlign: "left" }, onClick: function () {
                    onCancel === null || onCancel === void 0 ? void 0 : onCancel();
                } },
                React.createElement(Text, { style: __assign({ color: '#999999' }, cancelTextStyle) }, "\u53D6\u6D88")),
            title ? React.createElement(Text, null, title) : null,
            React.createElement(View, { className: "panel-btn-View", style: { textAlign: "right" }, onClick: function () {
                    onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
                } },
                React.createElement(Text, { style: __assign({ color: "#424141" }, confirmTextStyle) }, "\u786E\u5B9A"))),
        children));
};
export default PickerPanel;
